<script setup>
import { onMounted, ref } from "vue"
const props = defineProps({
  color:{
    type: String,
    default: '#147ad6'
  },
  data:{
    type: Array,
    default: ()=>[]
  }
})


</script>
<template>
  <div class="content" :style="{color:color}">
    <div class="content-item" v-for="item in data" :key="item.idx" >
      <div class="content-title">{{ item.idx }}</div>
      <div class="content-text" >{{ item.text }}</div>
    </div>
  </div>
</template>


<style lang="scss" scoped>
.content{
  display: grid;
  grid-template-columns: 25rem 25rem;
  padding:1rem 5rem 1rem 4rem;
  height: 70%;
  column-gap: 2rem;
  justify-content: space-between;
  position: relative;
  &::after{
    content: '';
    display: block;
    position: absolute;
    top: 40%;
    left: 50%;
    width: 90%;
    height: 0.2rem;
    background-color: #E5E5E5;
    transform: translate(-50%,-50%);
  }
  &-item{
    height: 100%;
  }
  &-title{
    font-size: 3.4rem;
    font-weight: bold;
    color: inherit;
    border-bottom: 0.2rem solid currentColor;
    width: fit-content;
    margin-bottom: 1rem;
  }
  &-text{
    font-size: 1.6rem;
    color: inherit;
    font-weight: bold;
    line-height:3;
  }
}
</style>
